package com.audaque.springboot.foshanupload.web.controller;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/*
public class ErrorPageController implements ErrorController {
    @RequestMapping("/999")
    public HttpStatus toPage999() {
        return HttpStatus.valueOf(404);
    }

    @RequestMapping("/404")
    public HttpStatus toPage404() {
        return HttpStatus.valueOf(404);
    }

    @RequestMapping("/500")
    public HttpStatus toPage500() {
        return HttpStatus.valueOf(500);
    }
    @GetMapping("/error")
    public String error() {
        return "error";
    }
    @Override
    public String getErrorPath() {
        return "/error/404";
    }
}*/
